package org.jackysoft.util;

import java.util.EnumSet;
import java.util.Map;

import com.google.common.collect.Maps;

public enum OperationType {
    System,User,Error,Warn,Create,Update,Remove;
    private static Map<Integer,OperationType> typeMap = Maps.newHashMap();
    static {
    	 
         for(OperationType opt : EnumSet.allOf(OperationType.class)){
        	 typeMap.put(opt.ordinal(), opt);
         }
    }
    
    public static OperationType lookup(int i){
    	return typeMap.get(i);
    }
    
}
